package com.yunyi.integration.service.impl;

import com.yunyi.integration.service.PolymorphismInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 测试多态调用
 *
 * @author yunyi
 */
@Service
public class PolymorphismInterfaceImpl implements PolymorphismInterface {

    @Autowired(required = false)
    private List<PolymorphismInterface> list;

//    @Autowired
//    private Map<String, PolymorphismInterface> polymorphismInterfaceMap;

    @Override
    public void testSomething(String name) {
        System.out.println("1111");
    }
}
